home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-13 / xe360.zip / XE.DOC < prev    next >
Text File  |  1993-02-06  |  35KB  |  1,053 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.                                     heXEdit
  13.  
  14.  
  15.  
  16.                                   Version 3.6
  17.  
  18.                                      2-6-93
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.                                  Robert Stuntz
  28.                             565 Dorothy Dr.  Apt. 1
  29.                             Des Plaines, IL.  60016
  30.  
  31.  
  32.                              CompuServe : 71043,117
  33.                                 GEnie : R.STUNTZ
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  ---  heXEdit  -------------------------------------  Page 1  ---
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.                                    DISCLAIMER
  73.  
  74.        THIS SOFTWARE AND MANUAL ARE DISTRIBUTED "AS IS" AND WITHOUT
  75.        WARRANTIES AS TO PERFORMANCE OF MERCHANTABILITY OR ANY OTHER
  76.        WARRANTIES WHETHER EXPRESSED OR IMPLIED.  BECAUSE OF THE VARIOUS
  77.        HARDWARE AND SOFTWARE ENVIRONMENTS INTO WHICH THIS PROGRAM MAY BE
  78.        PUT, NO WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE IS OFFERED AND
  79.        ALL LIABILITY IN THE USE AND AFFECTS OF THIS PROGRAM SHALL REST
  80.        WITH THE USER.
  81.  
  82.        THIS PROGRAM HAS THE ABILITY TO ALTER YOUR FILES! YOU ARE
  83.        RESPONSIBLE!   (Sorry, but I have to warn you ...)
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  ---  heXEdit  -------------------------------------  Page 2  ---
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.                                TABLE OF CONTENTS
  139.                                -----------------
  140.  
  141.   A. Introduction  ..................................................  4
  142.   B. Starting heXEdit  ..............................................  4
  143.   C. Command Line Options  ..........................................  4
  144.   D. Loadfile box  ..................................................  5
  145.     1. File Attributes  .............................................  6
  146.   E. Main display  ..................................................  6
  147.   F. Commands  ......................................................  6
  148.     1. Help  ........................................................  7
  149.     2. ASCII chart  .................................................  8
  150.     3. Base convert  ................................................  8
  151.     4. Colors  ......................................................  9
  152.     5. Decimal offset #'s  ..........................................  9
  153.     6. Edit  ........................................................  9
  154.     7. Goto offset  ................................................. 11
  155.     8. Hexadecimal offset #'s  ...................................... 11
  156.     9. Load new file  ............................................... 11
  157.     10. Mark position  .............................................. 11
  158.     11. Search again  ............................................... 12
  159.     12. Octal offset #'s  ........................................... 12
  160.     13. Retrieve position  .......................................... 12
  161.     14. Search  ..................................................... 12
  162.     15. Clear marker entries  ....................................... 13
  163.     16. Alt+1 thru Alt+9  ........................................... 13
  164.   G. Other Notes  ................................................... 13
  165.   H. Comments  ...................................................... 14
  166.  
  167.   Appendix
  168.     A. Version history  ............................................. 14
  169.     B. Trademark information  ....................................... 16
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  ---  heXEdit  -------------------------------------  Page 3  ---
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.   A. Introduction
  205.  
  206.  
  207.  
  208.         heXEdit (XE) is a program that will allow you to display and/or
  209.         edit any file. It doesn't have a fancy interface but serves my
  210.         purposes perfectly. I wrote this program because I became
  211.         frustrated with a couple of other commercial programs.  They
  212.         either had some annoying peculiarities or required too much
  213.         thought on my part just to search for and change a couple of
  214.         bytes.
  215.  
  216.  
  217.         heXEdit was written using Turbo Pascal v6.0, although it
  218.         doesn't use any of Borland's object libraries. It does however
  219.         write directly to the screen for speed when scrolling thru the
  220.         file. If you're using a CGA monitor you may see some 'snow' as
  221.         I don't check for the vertical retrace period before writing to
  222.         the screen.
  223.  
  224.  
  225.         heXEdit will keep no more than 1760 bytes of the file you load
  226.         in memory at a time, as I didn't feel like messing with a
  227.         variable amount of memory available. heXEdit requires about
  228.         110k bytes of free memory in order to execute.
  229.  
  230.  
  231. B. Starting heXEdit
  232.  
  233.  
  234.         To start heXEdit, enter
  235.  
  236.         XE [option] [<drive>:][<filename>]
  237.  
  238.  
  239.         The drive designator, filename and option are ... optional on
  240.         the command line. If only a drive designator is specified, XE
  241.         will show you the files from that drive's current directory.
  242.         If a file is specified XE will try to load that file, if not,
  243.         you will see a list of files from the current directory. All of
  244.         the available command line options are explained in the
  245.         following section.
  246.  
  247.  
  248. C. Command Line Options
  249.  
  250.  
  251.         Available command line options are as follows :
  252.  
  253.   1. /C
  254.  
  255.         This option tells XE to use it's default color set.
  256.  
  257.   2. /M
  258.  
  259.  
  260.  
  261.  ---  heXEdit  -------------------------------------  Page 4  ---
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.         This option tells XE to use black and white colors; for
  271.         monochrome monitors.
  272.  
  273.   3. ? or /? or /H
  274.  
  275.         Any of these three options will display a short (very short)
  276.         message about the start-up syntax.
  277.  
  278.  
  279. D. Loadfile box
  280.  
  281.  
  282.         If you did not specify a file on the command line when you
  283.         started XE, you will next see a list of files. To load one of
  284.         these files simply use the UP and DOWN arrow keys to move the
  285.         highlight bar to the file you want to load, then press ENTER.
  286.         You can also use the PAGEUP and PAGEDOWN keys to scroll thru
  287.         the list of files a page at a time. Pressing the HOME key will
  288.         move you to the top of the list, pressing END moves you to the
  289.         end of the list.
  290.  
  291.         Pressing ENTER on a directory entry or a drive letter will
  292.         change to that directory or drive.
  293.  
  294.         The files and directories in the Loadfile box are sorted.
  295.         Directories are listed first followed by the files.
  296.  
  297.         At the end of the list of files you will see one or more drive
  298.         designators. The available drives you can choose from are all
  299.         the drives up to and including the drive specified by the
  300.         lastdrive statement in your CONFIG.SYS file. Selecting one of
  301.         these will show you the files in that drive's current
  302.         directory.
  303.  
  304.  
  305.         While using the Loadfile box, you may encounter an error, for
  306.         one reason or another. Generally speaking, you will be given
  307.         one, some or all of the options below :
  308.  
  309.           1 - (A)bort : if you press 'A' XE will abort the operation.
  310.  
  311.           2 - (R)etry : press 'R' to retry the operation. (Maybe the
  312.               drive door was opened before you hit ENTER to load the
  313.               file.)
  314.  
  315.           3 - (Q)uit XE : press 'Q' to quit XE and return to the DOS
  316.               prompt (or wherever it was that you came from).
  317.  
  318.           4 - Any other key : if you hit any other key than the ones
  319.               described above you will be returned to the Loadfile box.
  320.  
  321.  
  322.         While in the Loadfile box, pressing ESC will exit the
  323.         Loadfile box and either 1) return you to the last file you were
  324.  
  325.  
  326.  
  327.  ---  heXEdit  -------------------------------------  Page 5  ---
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.         editing, or if no file was previously loaded 2) exit XE
  337.         altogether.
  338.  
  339.  
  340.   1. File Attributes
  341.  
  342.  
  343.         One last feature of the Loadfile box is that you can change the
  344.         attributes of a file simply by pressing F5-F8 (providing the
  345.         file is available; i.e., the disk is in the drive etc.) Move
  346.         the highlight bar to file you want to work with and then simply
  347.         hit one of the following, depending on what you want to do.
  348.  
  349.                 F5 - toggles the Archive bit
  350.                 F6 - toggles the System bit
  351.                 F7 - toggles the Hidden bit
  352.                 F8 - toggles the Read_Only bit
  353.  
  354.         If the attribute change was successful you will hear a high
  355.         pitch tone, otherwise you will hear a lower tone indicating that
  356.         the attribute could not be changed for one reason or another.
  357.         You should also see the attribute change in the Loadfile box if
  358.         the change was successful.
  359.  
  360.     *** NOTE : Be sure you know what affect changing an attribute
  361.         will have on your system. Some programs act on the attributes
  362.         of a file or may even require certain attributes to be set.
  363.  
  364.  
  365. E. Main Display
  366.  
  367.  
  368.         Once the file is loaded you will see the main display.  At the
  369.         top is the name of the file loaded. On the left side of the
  370.         display are numbers (in hexadecimal,decimal or octal)
  371.         indicating the offset into the file. In the middle are 22 rows
  372.         of 16 bytes which are the file's contents. On the right, the
  373.         ASCII character for each byte in that row. In the ASCII portion
  374.         of the display, any characters past the EOF (end-of-file) are
  375.         shown as a '.' (ASCII #249).  On the bottom is a status word
  376.         indicating your current operation, a three letter abbrev
  377.         indicating whether the offset display is in 'hex'adecimal,
  378.         'dec'imal, or 'oct'al, the percentage into the file from the
  379.         top line, and the size of the file in decimal.
  380.  
  381.  
  382. F. Commands
  383.  
  384.  
  385.         Following is a list of commands once you are in XE and then a
  386.         brief explanation of each :
  387.  
  388.  
  389.         F1 - Help
  390.  
  391.  
  392.  
  393.  ---  heXEdit  -------------------------------------  Page 6  ---
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.         A/Alt+A - ASCII table
  403.         B/Alt+B - Base conversion (decimal-hexadecimal-binary)
  404.         C - Change colors
  405.         D - Change offset display to Decimal
  406.         E - Edit the file
  407.         G - Goto offset
  408.         H - Change offset display to Hexadecimal
  409.         L - Bring up the Loadfile box
  410.         M - Push position on marker stack
  411.         N - Search again (using the last used search string)
  412.         O - Change offset display to Octal
  413.         R - Retrieve position from marker stack
  414.         S - Search (for text or a byte string)
  415.         Z - Clear all entries from marker stack
  416.         ALT+1 thru ALT+9 - Goto marked position
  417.  
  418.         UP/DOWN arrow keys - scroll up and down one line at a time
  419.         PAGEUP/PAGEDOWN    - move up/down one page at a time
  420.         HOME               - move to the beginning of the file
  421.         END                - move to the end of the file
  422.         ESC/Alt+X          - quit XE
  423.  
  424.  
  425.  
  426.   1. F1         - Help
  427.  
  428.         Pressing F1 will display a help screen. You now have the
  429.         following command available :
  430.  
  431.         F1 : Help on Help
  432.         F2 : Display index (keywords) for items in the help file
  433.         F3 : Goto the previous screen (limited)
  434.         F5 : Zoom/Unzoom the help screen
  435.  
  436.         ENTER           : Get help on a highlighted keyword
  437.         Arrow keys      : Scroll the help screen contents left, right,
  438.                           up and down
  439.         ESC             : Exits help
  440.         TAB / SHFT+TAB  : Highlight the next/previous visible
  441.                           keyword
  442.         PAGEUP/PAGEDOWN : Move up and down a page at a time
  443.         HOME/END        : Goto the beginning/end of the help info for
  444.                           the current item
  445.  
  446.  
  447.  
  448.         In the upper left corner of the help screen (in the border),
  449.         you may see a number and possibly one of three arrow
  450.         characters. The number is the left column, of the help info,
  451.         you are at. If you are at column one, it will not be displayed.
  452.         The arrow characters indicate if there is more info either
  453.         above or below (or both) of your position.
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  ---  heXEdit  -------------------------------------  Page 7  ---
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.         A couple of notes on the help file.
  469.  
  470.         1. heXEdit expects the help file (XE.HLP) to be in the
  471.         directory that XE.EXE is in. If it is not, you will
  472.         get an error message when you invoke help.
  473.  
  474.         2. If you modify the help file, make sure your keywords
  475.         are capitalized and start in column one. It will
  476.         probably be easier to just look at the help file that
  477.         came with heXEdit to see how it's done.
  478.  
  479.         3. There is a limit of 75 lines of information per
  480.         keyword.
  481.  
  482.         4. Keyword information begins with it's keyword and
  483.         ends with a slash (#47).
  484.  
  485.         5. To create a keyword in a help screen, precede the
  486.         keyword with a tilde (#126) and end it with a
  487.         back-quote (#96).
  488.  
  489.  
  490.  
  491.   2. A or Alt+A - Display ASCII chart.
  492.  
  493.         ASCII chart commands :
  494.           LEFT arrow key  : go back 16 characters
  495.           RIGHT arrow key : go forward 16 characters
  496.           PAGEUP          : go back 128 characters
  497.           PAGEDOWN        : go forward 128 characters
  498.           D               : display numbers in decimal
  499.           H               : display numbers in hexadecimal
  500.           ESC or ENTER    : exits ASCII chart
  501.  
  502.  
  503.   3. B or Alt+B - Convert a number from either decimal, hexadecimal or
  504.                   binary to the other two.
  505.  
  506.         Base convert commands :
  507.           UP/DOWN arrow keys  : select the base of the input number
  508.           ENTER               : convert the number
  509.           ESC                 : exit the base convert routine
  510.  
  511.         Using the arrow keys, move the highlight bar to the
  512.         base of the input number and then either 1) press
  513.         ENTER and enter the number or 2) just start typing
  514.         the number. After the number has been converted, press
  515.         any key to select the base for another conversion or
  516.         press ESC to exit.
  517.  
  518.         When you enter the number, I only check for validity
  519.         with the first character. If you try to convert an
  520.         invalid number an error message will be displayed. The
  521.         largest number that can be accurately converted is a 32
  522.  
  523.  
  524.  
  525.  ---  heXEdit  -------------------------------------  Page 8  ---
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.         bit number. It has a very simple input routine, so
  535.         don't be surprised if you can enter an invalid number.
  536.         The conversion will be incorrect of course. I leave
  537.         it mostly up to you to enter a valid number.
  538.  
  539.  
  540.   4. C          - Change colors
  541.  
  542.         This command will allow you to change the color of just about
  543.         anything. You can also save the colors you choose so that XE
  544.         will startup with those colors.
  545.  
  546.         Simply select the area you want to change the color in
  547.         by pressing a letter 'A' thru 'O'. A colorbox of all
  548.         possible colors will appear. The current color of the
  549.         item you selected will have two white bars on either
  550.         side of an 'X'. You can now move those white bars
  551.         around with the arrow keys to select a new color. With
  552.         the white bars around the color scheme you want, press
  553.         ENTER. If you change your mind and don't want to
  554.         change the color after all, press ESC.
  555.  
  556.         There are a couple areas that have a color selection
  557.         restriction. Area 'G', Altered bytes background, you
  558.         can only select the background, the foreground is the
  559.         same as the main bytes (area 'A'). And the border for
  560.         Help, only the foreground can be selected as it's
  561.         background is the same as the Help text (area 'L').
  562.  
  563.         Color Change Commands :
  564.  
  565.         F1        : get help
  566.         A-O       : select the area you want to change
  567.         S         : save the currently selected colors to XE.EXE
  568.         ESC/ENTER : exit the color change screen
  569.  
  570.         The 'S' command will save the currently selected colors
  571.         to the executable file (XE.EXE). If XE.EXE is not
  572.         available where it was started from, an error message
  573.         will be displayed to that effect, which means your
  574.         colors have not been saved.
  575.  
  576.         If you want the default colors back, start-up XE with
  577.         the /C option. If you want to retain the default colors
  578.         make sure you then save the colors, otherwise the next
  579.         time you start XE you will have whatever colors were
  580.         last saved in XE.EXE.
  581.  
  582.  
  583.   5. D          - Change the offset display to base 10, decimal.
  584.  
  585.  
  586.   6. E          - Edit
  587.  
  588.  
  589.  
  590.  
  591.  ---  heXEdit  -------------------------------------  Page 9  ---
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.         Begin editing the file at the current position.  If the file is
  601.         a READ ONLY file, a short message to that affect will appear
  602.         and you will be returned to the view mode. Of course, you could
  603.         just press 'L' to bring up the Loadfile box and change the READ
  604.         ONLY attribute of the file with F8.  And then go back and edit.
  605.         But, it might be READ ONLY for a reason ...
  606.  
  607.         If you had previously searched the file successfully (meaning
  608.         you found an item) then if that exact item is displayed on
  609.         screen when you go to edit mode, then the cursor will be
  610.         positioned at the first character of that item. When I say
  611.         exact item, I mean the last item that you found in your search.
  612.         Also, shown at the bottom is the offset of the cursor position.
  613.  
  614.         Edit commands :
  615.           F1              : get help
  616.           Alt+A           : displays the ASCII chart
  617.           Alt+B           : base number conversion
  618.  
  619.           BACKSPACE/LEFT arrow key  : move cursor left 1 byte
  620.           RIGHT arrow key : move cursor right 1 byte
  621.           PAGEUP          : move cursor to first line on page
  622.           PAGEDOWN        : move cursor to last line on page
  623.           HOME            : move cursor to beginning of line
  624.           END             : move cursor to end of line
  625.  
  626.           TAB : toggle cursor position between the hexadecimal display
  627.                 and the ASCII display of the file. The above editing
  628.                 commands will move the cursor within the area the
  629.                 cursor is in.  You can edit the file making changes in
  630.                 both areas at the same time, if so desired.
  631.  
  632.           ENTER : quit editing. If you made changes to whole bytes you
  633.                   will be prompted to save the changes or not.  Press
  634.                   'Y' to save the changes or 'N' to lose the changes.
  635.                   Only the portion of the file that is in memory is
  636.                   actually saved. So don't worry about waiting for a
  637.                   long save if you are editing a large file.  You are
  638.                   then returned to the View mode.
  639.  
  640.           ESC : quit editing. This will return you to the View mode and
  641.                 will not save any changes you made.
  642.  
  643.         To change a value when in the hexadecimal portion, just
  644.         type in it's new value. The background of the character
  645.         will change, indicating which bytes have been changed.
  646.         Valid values are '00' - 'FF'. Obviously, pressing a key
  647.         like 'P' will do nothing because 'P' is not a valid
  648.         hexadecimal character.
  649.  
  650.         To change a value when in the ASCII portion of the
  651.         display, simply press the key of the new value. Or,
  652.         hold down the ALT key while typing the ASCII code
  653.         of the character you want, then release the ALT
  654.  
  655.  
  656.  
  657.  ---  heXEdit  -------------------------------------  Page 10  ---
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.         key. Using the ALT key in this area, you can
  667.         enter a value from 32-255. Again, the background will
  668.         change indicating a change.
  669.  
  670.  
  671.   7. G          - Goto an offset in the file.
  672.  
  673.         You are prompted for an offset to go to. You can enter
  674.         either a decimal number or a hexadecimal number. If you
  675.         press ESC while entering a number you will be placed
  676.         back in the View mode with no repositioning taking
  677.         place.  The BACKSPACE key can be used to edit your
  678.         entry. If you enter an offset that is beyond the
  679.         EOF (or < 0) you will be prompted again for a
  680.         number.
  681.  
  682.         To enter a decimal number just type in the number, no
  683.         commas, and press ENTER.
  684.  
  685.         To enter a hexadecimal number, type a '$' as the first
  686.         character and then continue entering the hex number.
  687.  
  688.         Also, if at anytime while entering a number, you enter
  689.         an 'A' through 'F' a '$' will be inserted into your
  690.         number at the beginning and your entry will be taken as
  691.         a hexadecimal number. For example:
  692.  
  693.                 Keystroke               Screen
  694.                 3                       3
  695.                 5                       35
  696.                 1                       351
  697.                 E                       $351E
  698.                 etc ...
  699.  
  700.  
  701.   8. H          - Change the offset display to base 16, hexadecimal.
  702.  
  703.  
  704.   9. L          - Load a new file
  705.  
  706.         You will enter the Loadfile box in order to select a new file
  707.         (as described earlier in this document under  D. Loadfile box.)
  708.  
  709.         Since you can't leave the edit mode without either saving any
  710.         changes or losing changes, you needn't worry about saving the
  711.         current file before loading a new one.
  712.  
  713.  
  714.   10. M         - Push position on marker stack.
  715.  
  716.         Your current position in the file can be saved with this
  717.         command and then be retrieved later on.
  718.  
  719.         Your position is saved on a stack. If the stack is full the
  720.  
  721.  
  722.  
  723.  ---  heXEdit  -------------------------------------  Page 11  ---
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.         oldest position will be deleted and the rest of the entries
  733.         will move down the stack to make room for the new entry. The
  734.         maximum number of positions you can save is 100. Also, when
  735.         your position is saved, it's location on the stack is reported
  736.         to you so you can see how full the marker stack is.
  737.  
  738.         This command can also be used while searching. If the search
  739.         string is found, you can press 'M' to save that position on the
  740.         marker stack and then continue searching.
  741.  
  742.  
  743.   11. N         - Search again using the last used search string
  744.  
  745.         If there is no previous search string, you will be prompted, as
  746.         if you pressed 'S', to enter a search string.
  747.  
  748.  
  749.   12. O         - Change the offset display to base 8, octal.
  750.  
  751.  
  752.   13. R         - Goto (retrieve) position
  753.  
  754.  
  755.         While viewing the file, if you do this command you
  756.         will be moved to the location specified by the top
  757.         marker stack entry. Once you have been moved to the new
  758.         location, the entry you retrieved will be deleted
  759.         from the marker stack. If there are no markers on the
  760.         stack, then nothing will happen.
  761.  
  762.  
  763.   14. S         - Search the file for a byte or text sequence.
  764.  
  765.         You will be prompted for the type of search (B)yte or
  766.         (T)ext.
  767.  
  768.         For a byte sequence, enter the bytes in hexadecimal
  769.         notation then press ENTER.  As with editing, you
  770.         must enter a complete byte, for the search to work
  771.         correctly, although I don't check for that here. You
  772.         can use the BACKSPACE key to go back and make
  773.         corrections.  The maximum length for a byte sequence is
  774.         9 bytes. I think that is plenty long enough, even 4
  775.         bytes would probably be enough to find what you're
  776.         looking for. For example, you might see this prompt :
  777.  
  778.                 Enter search bytes :
  779.  
  780.         Now you would just hit the numbers that make up the
  781.         bytes you want to search for, like :
  782.  
  783.                 D3 45 FF 00 C4 6E
  784.  
  785.         There is no need to enter a space between each byte as
  786.  
  787.  
  788.  
  789.  ---  heXEdit  -------------------------------------  Page 12  ---
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.         I do that for you while you're entering your numbers.
  799.  
  800.         For a text sequence, just type in the text to search
  801.         for, no quotes are needed, and press ENTER. The
  802.         maximum length for a text sequence is 25 characters.
  803.         The search is case insensitive.
  804.  
  805.         If the search string is found, the display will move to
  806.         that string's location in the file and will be high-
  807.         lighted at the top of the screen. You can now press any
  808.         key to continue the search, press 'M' to Mark the
  809.         position or press ESC to stop searching.
  810.  
  811.         While XE is searching, you can press any key to interrupt
  812.         and stop the search.
  813.  
  814.         Just to make things simple for myself, every search
  815.         starts at the beginning of the file. Even on large
  816.         files, starting at the beginning to find something you
  817.         know is near the end doesn't take very long at all (at
  818.         least not on my 40Mhz 386!)
  819.  
  820.         And beginning with v3.5, the searching is done using the
  821.         Boyer-Moore algorithm. This should significantly speed up
  822.         searching; on ANY computer.
  823.  
  824.  
  825.   15. Z         - Clear all entries from marker stack
  826.  
  827.         This command will delete all entries from the marker stack.
  828.         Careful, there is no turning back from the results of this
  829.         command.
  830.  
  831.  
  832.   16. Alt+1 thru Alt+9    - Goto marked position
  833.  
  834.         Using these commands will move you to a previously marked
  835.         position without deleting the mark information.  The retrieve
  836.         command 'R' moves you to the last position and deletes the
  837.         mark, using Alt+1 - Alt+9 does not delete the mark. Alt+1 moves
  838.         you to the first marked position, Alt+2 moves you to the second
  839.         marked position, etc etc. If you try to move to a position that
  840.         has not been marked yet, nothing will happen except a message
  841.         telling you so.
  842.  
  843.  
  844. G. Other Notes
  845.  
  846.         If for some reason you rename XE.EXE you will need to rename
  847.         the help file (XE.HLP). For example, if you rename XE.EXE to
  848.         XEDIT.EXE, the help file should be renamed to XEDIT.HLP.
  849.  
  850.         And if for some other reason you have XE.EXE loaded under XE,
  851.         and then save the colors, you may need to force a re-read of
  852.  
  853.  
  854.  
  855.  ---  heXEdit  -------------------------------------  Page 13  ---
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.         the last part of the file to get the correct information
  865.         loaded.
  866.  
  867.         The Loadfile box has a limit of 300 files or directories that
  868.         it can display for you. If you change to a directory with more
  869.         than 300, you will not see all of the files. Because of the way
  870.         I wrote that part of the program, 300 is about as high as I can
  871.         go due to stack space limitations. If you want to load a file
  872.         that is in a directory with more than 300 files, you'll have to
  873.         specify that filename on the command line when you start XE.
  874.  
  875.         XE does not support any video modes other than 80x25 text and
  876.         will work with a monochrome monitor. Just don't forget to
  877.         include the '/M' option on the command line and then save the
  878.         color configuration to retain the monochrome 'colors'.
  879.  
  880.  
  881. H. Comments
  882.  
  883.  
  884.         I would strongly suggest that you make a backup copy of any
  885.         file you're going to modify, just in case you decide later
  886.         you want the original file back. You should have a backup copy
  887.         anyway as a matter of safeguarding your files in case of
  888.         catastrophe.
  889.  
  890.         I have a 40Mhz 386 AT running MS-DOS 5.0. XE should work
  891.         with most system configurations though.
  892.  
  893.         Also, I don't expect any payment for use of this program. Feel
  894.         FREE to use it how you like, but be careful :).
  895.  
  896.  
  897.         Rob
  898.  
  899.  
  900.  
  901. Appendix
  902.  
  903.   A. Version History
  904.  
  905.             v1.0  04-08-91 - Initial writing
  906.             v1.1  05-16-91 - Minor internal changes
  907.             v1.2  07-04-91 - added Marker commands
  908.             v1.21 08-03-91 - increased marker stack size to 100
  909.                              added Z command; clear marker stack
  910.             v1.3  08-12-91 - added Goto Offset command
  911.                              fixed a bug or two
  912.             v2.0  09-25-91 - added Loadfile box (instead of typing in
  913.                                the filename)
  914.                              set to video page 0 at startup
  915.                                (this was done in case you shell out from
  916.                                another program and that program puts you
  917.                                in a video page other than 0, like Turbo
  918.  
  919.  
  920.  
  921.  ---  heXEdit  -------------------------------------  Page 14  ---
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.                                Debugger. XE needs to be in video page
  931.                                0.  XE returns to the video page you
  932.                                where at before it started when you exit)
  933.                              added backspace key use while editing (acts
  934.                                like left arrow key)
  935.                              added 'D', 'H' and 'O' commands while viewing
  936.                              changed Help command to 'F1' from 'H'
  937.                              made Search command case insensitive
  938.                              added ability to enter a drive designator
  939.                                on cmd line to start Loadfile box on that drive
  940.                              and of course fixed some bugs ...
  941.             v2.1  10-19-91 - decided I better try and trap most of the
  942.                                I/O, as opposed to only some, for errors,
  943.                                to avoid a possible run-time error
  944.                              allow loading of read-only files
  945.                              allow entry of ASCII chars 32-255 when
  946.                                editing in ASCII portion of display
  947.                                (formerly 32-126)
  948.                              check for and handle extremely long path names
  949.                                in display
  950.                              swapped ability to change Help screen color
  951.                                with Base convert
  952.                              search command now highlights found text,
  953.                                (no flashing arrow!)
  954.                              hidden files (and directories) are lowercase
  955.                                in Loadfile box
  956.                              and the usual bug fixes ...
  957.             v2.11 10-21-91 - fixed base convert color saving and loading
  958.                                from cfg file
  959.             v3.0  11-11-91 - fixed pagedown problem of going past EOF on
  960.                                display for files with a length approaching
  961.                                that of the buffer size
  962.                              added '%' into file indicator
  963.                              you can now call up the ascii chart and
  964.                                base convert from edit mode with
  965.                                Alt+A, Alt+B
  966.                              in edit mode, Pg Up/Dn now just goto first/
  967.                                last line. column position is not changed
  968.                              totally new help system  (yea!)
  969.             v3.01 11-12-91 - fixed extra '%' char left when going from
  970.                                100% to <100%
  971.                              allow config file to take on same name as
  972.                                executable; in case you rename XE.EXE
  973.             v3.02 11-18-91 - fixed bug when executing from second level
  974.                                or deeper sub-dir.
  975.             v3.1  11-25-91 - fixed configuration file saving problem
  976.                              added ALT+1 thru ALT+9 commands (goto
  977.                                marked position)
  978.                              restricted input length for base conversion
  979.             v3.2  01-23-92 - added colorbox for color selection, instead
  980.                                of entering numbers.
  981.             v3.3  01-29-92 - XE.CFG file is now history. Color
  982.                                information is saved in the executable
  983.                              added cmd line options /C, /M, /?, ?, /H
  984.  
  985.  
  986.  
  987.  ---  heXEdit  -------------------------------------  Page 15  ---
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.                              slight (very) improvement in display speed
  997.                              restore cursor from a Ctrl-Brk input
  998.                              no more editing past the EOF
  999.             v3.31 02-05-92 - fixed byte search problem with char case
  1000.             v3.32 02-07-92 - fixed byte search problem with char case
  1001.                                (this time for real. haste makes waste...)
  1002.             v3.33 02-23-92 - change Loadfile box to show files in the
  1003.                                current directory of a drive (previously
  1004.                                root dir)
  1005.             v3.4  04-04-92 - added ability to abort searching
  1006.                              update '%' into file indicator during search
  1007.                              added Alt+A for ASCII chart cmd from View mode
  1008.                              added Alt+B for Base convert cmd from View mode
  1009.                              cursor is positioned at location of last search
  1010.                                item when going to edit mode; if that search
  1011.                                item is visible on screen in same file
  1012.                              changed default colors a little
  1013.                              file list in Loadfile box is now sorted by name
  1014.                              fixed PgUp bug in Loadfile box
  1015.             v3.5  04-23-92 - implemented the Boyer-Moore search algorithm
  1016.                                for a definite improvement in search
  1017.                                speed
  1018.             v3.51 06-10-92 - fixed search routine bug
  1019.             v3.52 06-29-92 - ditto
  1020.             v3.53 08-10-92 - allow 'C' (change colors) command in mono;
  1021.                                so you can save the mono colors to XE.
  1022.             v3.54 12-10-92 - allow ESC while editing when only half of
  1023.                                a byte has been changed.
  1024.             v3.6  02-06-93 - show offset of cursor when editing, line
  1025.                                wrap cursor when moving
  1026.  
  1027.  
  1028.   B. Trademark information
  1029.  
  1030.         'Turbo Pascal' and 'Turbo Debugger' are registered trademarks
  1031.         of Borland International, Inc.
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  ---  heXEdit  -------------------------------------  Page 16  ---